#include <iostream>
#include "vectorfunctions.h"

int distinct(char x[], int l)
{
	int i, j;
	for(i=0;i<l;i++)
		for (j=i+1;j<l;++j)
			if(x[j]==x[i])
				return 0;
return 1;			
}

int main()
{
	int l, nl;
	char x[100];
	cout<<"Number of elements : ";
	cin>>l;
	readVector(x, l);
	printVector(x, l);
	if (distinct(x, l)!=0)
		cout<<"has distinct letters\n";
	else 
		cout<<"doesn't have distinct letters\n";
return 0;
}
